import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		NavHeight: 0,//导航栏高度
		safe_top: 0,//向上安全距离
		lang: 'tur'
	},
	mutations: {
		NavHeight(state, payload) {
			state.NavHeight = payload.NavHeight
		},
		safe_top(state, payload) {
			state.safe_top = payload.safe_top
		},
		lang(state, payload) {
			state.lang = payload.state
		}
	},
	actions: {

	},
	getters: {

	}
})

export default store
